package com.myapp.api.service;

import com.myapp.api.entity.Teacher;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface TeacherService {
    public List<Teacher> getTeachers();

    public Teacher getTeacherById(@Param("id") Integer id);

    public Teacher getTeacherByTid(@Param("tid") String tid);

    public Integer getTeacherByOneTid(@Param("tid") String tid);

    public List<Teacher> getTeacherByTname(@Param("tname") String tname);

    public int addTeacher(@Param("record") Teacher record);

    public int deleteTeacherById(@Param("id") Integer id);

    public int putTeacher(@Param("record") Teacher record);
}
